<script>
	import pako from './components/pako.min.js';
	let socketDeep;
 
	export default {
		globalData: {
			statusBarHeight:'',
			list: [{
					pagePath: "/pages/home/index",
					iconPath: "/static/tabbar/shouye_0.png",
					selectedIconPath: "/static/tabbar/shouye_1.png",
					text: "首页",
					customIcon: false,
				},
				{
					pagePath: "/pages/blindBox/index",
					iconPath: "/static/tabbar/jishou_0.png",
					selectedIconPath: "/static/tabbar/jishou_1.png",
					text: "寄售区",
					customIcon: false,
				},
				// {
				// 	pagePath: "/pages/chip/index",
				// 	iconPath: "/static/tabbar/xiaoxi_0.png",
				// 	selectedIconPath: "/static/tabbar/xiaoxi_1.png",
				// 	text: "消息",
				// 	customIcon: false,
				// },
				{
					pagePath: "/pages/market/index",
					iconPath: "/static/tabbar/faxian_0.png",
					selectedIconPath: "/static/tabbar/faxian_1.png",
					text: "发现",
					customIcon: false,
				},
				{
					pagePath: "/pages/my/index",
					iconPath: "/static/tabbar/wode_0.png",
					selectedIconPath: "/static/tabbar/wode_1.png",
					text: "我的",
					customIcon: false,
				}
			]
		},
		onLaunch: function() {
	
		},
		onLoad() {
			//获取状态栏+导航栏的高度
				// let _that = this;
				// uni.getSystemInfo({
				// 	success(e) {
				// 		console.log(e);
				// 		if(e.platform == "ios" || e.platform == "devtools"){
				// 			_that.statusBarHeight = e.statusBarHeight + 45;
				// 		}else{
				// 			_that.statusBarHeight = e.statusBarHeight + 50;
				// 		}
				// 	}
				// })
		},
		onShow: function() {},
		onHide: function() {
			getApp().globalData.list = [{
					iconPath: "/static/tabbar/shouye_0.png",
					selectedIconPath: "/static/tabbar/shouye_1.png",
					text: "首页",
					customIcon: false,
					pagePath: "/pages/home/index",
				},
				{
					pagePath: "/pages/blindBox/index",
					iconPath: "/static/tabbar/jishou_0.png",
					selectedIconPath: "/static/tabbar/jishou_1.png",
					text: "寄售区",
					customIcon: false,
				},
				// {
				// 	pagePath: "/pages/chip/index",
				// 	iconPath: "/static/tabbar/xiaoxi1.png",
				// 	selectedIconPath: "/static/tabbar/xiaoxi0.png",
				// 	text: "消息",
				// 	customIcon: false,
				// },
				{
					pagePath: "/pages/market/index",
					iconPath: "/static/tabbar/faxian_0.png",
					selectedIconPath: "/static/tabbar/faxian_1.png",
					text: "发现",
					customIcon: false,
				},
				{
					pagePath: "/pages/my/index",
					iconPath: "/static/tabbar/wode_0.png",
					selectedIconPath: "/static/tabbar/wode_1.png",
					text: "我的",
					customIcon: false,
				}
			]
		},
		methods: {}
	}
</script>

<style lang="scss">
	// 正式打包隐藏顶部导航栏
	// uni-page-head{
	// 	display: none;
	// }
	@import url("static/font/iconfont.css");
	page {
		// background-color: #f5f5f5;
	}
	.u-dropdown__menu{
		width: 60%;
	}
	uni-page-body {
		color: $gray !important;
		font-size: 30rpx !important;
	}

	// 自定义头部，状态栏盒子样式
	.status_bar {
		height: var(--status-bar-height);
		width: 100%;
		// background-color: $bg;
	}

	// tab切换选中加下边框
	.active-bb {
		&::after {
			content: '';
			position: absolute;
			width: 90%;
			height: 5rpx;
			background-color: $glod;
			left: 5%;
			bottom: -25rpx;
		}
	}

	// filed
	.u-field {
		color: #fff;
		padding: 26rpx 34rpx !important;

		.u-label-text {
			font-weight: 700 !important;
		}
	}

	// 提交按钮
	// <u-button type="primary" @click="pay">确定</u-button>
	.u-btn--primary {
		background: #44ACFF !important;
		border-radius: 46rpx;
		height: 92rpx;
		width: 650rpx;
		color: #262729 !important;
		font-size: 30rpx;
	}

	.u-btn--primary--disabled {
		background: #DEE4E8 !important;
		background-size: 100% 100%;
	}

	.u-size-default {
		height: 88rpx !important;
	}

	// cell组件右边箭头对其文字
	.u-cell_title {
		font-weight: 700 !important;
		// color: #fff !important;
	}

	.u-cell__right-icon-wrap {
		height: 55rpx !important;
	}

	// 九宫格
	.u-grid-item-box {
		padding: 30rpx 0 0 !important;
	}

	.text-ellipsis {
		display: block;
		overflow: hidden;
		white-space: nowrap;
		text-overflow: ellipsis;
	}

	.text-ellipsis-2 {
		display: -webkit-box;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 2;
		overflow: hidden;
	}

	.timeImg {
		width: 30rpx;
		height: 30rpx;
	}

	.collectPreImg {
		width: 684rpx;
		display: block;
		margin: 0 auto;
		height: auto;
	}

	.preImg {
		width: 40rpx;
		height: 40rpx;
		position: absolute;
		z-index: 10;
		bottom: 20%;
		left: 50%;
		transform: translateX(-50%);
	}

	::v-deep  .u-tabbar__content__item {
		background-color: #fff !important
	}
    ::v-deep  .uni-btn-icon{
		color: #000 !important;
	}
	/*每个页面公共css */
	/* 注意要写在第一行，同时给style标签加入lang="scss"属性 */
	@import "uview-ui/index.scss";
	@import './common/common.scss'
</style>
